#!/usr/bin/python3

'''
检测 usb 设备
'''

import evdev
devices = [evdev.InputDevice(path) for path in evdev.list_devices()]

print('发现设备: ')
for device in devices:
  print(device.path, device.name, device.phys)